package com.itheima.service.mongo;

import com.itheima.domain.mongo.Sound;

public interface SoundService {

    //发送语音
    void save(Sound sound);

    //根据日期查询发送语音的条数
    Integer findNum(String date,Long userId);

    //随机获取一条语音数据
    Sound findOneSound(Long userId);

    //查询接收语音的剩余次数
    Integer remainingTimes(String date,Long userId);
}
